package com.example.katalk_nari;

import android.content.Context;
import android.view.LayoutInflater;
import android.widget.FrameLayout;
import android.widget.TextView;

public class SendMessageview extends FrameLayout {

	private SendMessageData mData;

	private TextView tvMessage;
	private TextView tvDateTime;
	
	
	
	public SendMessageview(Context context) {
		super(context);
		
		LayoutInflater inflater = LayoutInflater.from(context);
		inflater.inflate(R.layout.item_send, this);
		
		tvMessage = (TextView)findViewById(R.id.message);
		tvDateTime = (TextView)findViewById(R.id.datetime);
	}

	public void setData(SendMessageData data){
		mData = data;
		tvMessage.setText(data.getMessage());
		tvDateTime.setText(data.getDateTimeToString());		
	}
	
}